package com.headwind.logistics.order.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * @Author 盛夏
 * @Date 2020-07-21 下午 11:09
 * @Version 1.0
 * @DESCRIPTION 订单工具类
 */
public class OrderUtil {
    public static String getUUID() {
        String replaceUUID = UUID.randomUUID().toString().replace("-", "");
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");//设置日期格式

        return df.format(new Date())+replaceUUID.substring(0,6);
    }

    public static void main(String[] args) {
        Date data = new Date();
        System.out.println(data.toString());
    }
}
